﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Data;
using Husb.Data;
using Husb.Util;
using CentralOffice.Archive.Data;
using CentralOffice.Archive.DataAccess;

using ArchiveTable = CentralOffice.Archive.Data.ArchiveDataSet.ArchivesDataTable;
using ArchiveRow = CentralOffice.Archive.Data.ArchiveDataSet.ArchivesRow;

namespace CentralOffice.Archive.BusinessActions
{
    public class Archive : DataAccessManager<ArchiveDataSet, ArchiveTable, ArchiveRow, ArchiveAdapter>
    {
        public static int GetMaxOrderNumber()
        {
            ArchiveAdapter adapter = new ArchiveAdapter();
            return adapter.GetMaxOrderNumber();
        }

        public static int UpdateAuthority(Guid id, string xml)
        {
            ArchiveAdapter adapter = new ArchiveAdapter();
            return adapter.UpdateAuthority(id, xml);
        }

        
    }
}
